package com.bjgzy.courselive.mvp.model;

import com.bjgzy.courselive.mvp.contract.CourseIntroductionContract;
import com.bjgzy.courselive.mvp.model.api.Api;
import com.bjgzy.courselive.mvp.model.entity.CourseIntroductionData;
import com.eduhzy.ttw.commonsdk.entity.CommonData;
import com.jess.arms.integration.IRepositoryManager;
import com.jess.arms.mvp.BaseModel;

import java.util.Map;

import javax.inject.Inject;

import io.reactivex.Observable;

/**
 * @author xubo
 * @date 2018-8-27 14:58:36
 */
public class CourseIntroductionModel extends BaseModel implements CourseIntroductionContract.Model {


    @Inject
    public CourseIntroductionModel(IRepositoryManager repositoryManager) {
        super(repositoryManager);
    }

    @Override
    public Observable<CommonData<CourseIntroductionData>> getSummaryById(Map<String, Object> map) {
        return mRepositoryManager.obtainRetrofitService(Api.class).getSummaryById(map);
    }
}